package org.little.v4;

import org.junit.Assert;
import org.junit.Test;
import org.little.context.ApplicationContext;
import org.little.context.support.ClassPathXmlApplicationContext;
import org.little.service.v4.PetStoreService;

/**
 * @author Tinyspot
 * @date 2022-05-22 17:05
 */
public class ApplicationContextTest4 {

    @Test
    public void testGetBeanProperty() {
        ApplicationContext context = new ClassPathXmlApplicationContext("little-v4.xml");
        PetStoreService petStoreService = (PetStoreService) context.getBean("petStore");

        Assert.assertNotNull(petStoreService.getAccountDao());
        Assert.assertNotNull(petStoreService.getItemDao());
    }
}
